import request from '@/api/request';
export function login(username, password) {
    return request({
        url: '/login',
        method: 'post',
        data: {
            username,
            password
        }
    });
}
export function publicList() {
    return request({
        url: '/system/article/publicList',
        method: 'get'
    });
}
export function publicListDetail(id) {
    return request({
        url: '/system/article/getArticleDetail?sysArticleId=' + id+'&pageSize=10000&pageNum=1',
        method: 'get'
    });
}
export function article(id) {
    return request({
        url: '/system/article/getArticleDetail?sysArticleId=' + id,
        method: 'get'
    });
}
export function newsFlashList() {
    return request({
        url: '/system/article/publicList?category=yzkx',
        method: 'get'
    });
}
export function getNoticeList() {
    return request({
        url: '/system/article/publicList?category=tzgg&pageType=yzzc',
        method: 'get'
    });
}
export function getBannerPublicList() {
    return request({
        url: '/system/banner/publicList',
        method: 'get'
    });
}

export function getCultureList(category,pageType,haveContent) {
    let add = ``
    if(haveContent){
        add = `&isContent=${haveContent}`
    }
    return request({
        url: `/system/article/publicList?category=${category}&pageType=${pageType}&pageSize=10000&pageNum=1`+add,
        method: 'get'
    });
}